package o;

import android.os.Binder;
import android.os.IBinder;
import android.os.IInterface;
import android.os.Parcel;
import android.os.RemoteException;

public interface dyv extends IInterface {

    public static abstract class b extends Binder implements dyv {

        static class d implements dyv {
            private IBinder ॱ;

            d(IBinder iBinder) {
                this.ॱ = iBinder;
            }

            public IBinder asBinder() {
                return this.ॱ;
            }

            public void ॱ(int i) throws RemoteException {
                Parcel obtain = Parcel.obtain();
                Parcel obtain2 = Parcel.obtain();
                try {
                    obtain.writeInterfaceToken("com.huawei.appmarket.service.externalservice.activityresult.IActivityResult");
                    obtain.writeInt(i);
                    this.ॱ.transact(1, obtain, obtain2, 0);
                    obtain2.readException();
                } finally {
                    obtain2.recycle();
                    obtain.recycle();
                }
            }
        }

        public b() {
            attachInterface(this, "com.huawei.appmarket.service.externalservice.activityresult.IActivityResult");
        }

        public static dyv ˋ(IBinder iBinder) {
            if (iBinder == null) {
                return null;
            }
            IInterface queryLocalInterface = iBinder.queryLocalInterface("com.huawei.appmarket.service.externalservice.activityresult.IActivityResult");
            if (queryLocalInterface == null || !(queryLocalInterface instanceof dyv)) {
                return new d(iBinder);
            }
            return (dyv) queryLocalInterface;
        }

        public boolean onTransact(int i, Parcel parcel, Parcel parcel2, int i2) throws RemoteException {
            String str = "com.huawei.appmarket.service.externalservice.activityresult.IActivityResult";
            switch (i) {
                case 1:
                    parcel.enforceInterface(str);
                    ॱ(parcel.readInt());
                    parcel2.writeNoException();
                    return true;
                case 1598968902:
                    parcel2.writeString(str);
                    return true;
                default:
                    return super.onTransact(i, parcel, parcel2, i2);
            }
        }
    }

    void ॱ(int i) throws RemoteException;
}
